using System.Net.Mail;

namespace Framework.Library.Core.Utils.Email
{
    public class SmtpEmailSender : IEmailSender
    {
        private SmtpClient _client;

        #region IEmailSender Members

        public void SendMail(MailMessage mail)
        {
            if (_client == null)
                _client = new SmtpClient();

            _client.Send(mail);
        }

        #endregion
    }
}